package org.example.code.test2024.eight_mouth;

class MoneyThread implements Runnable {
 
	private ShowMeBug account;		//存入账户
	
	private double money;			//存入金额
	
 
	public MoneyThread(ShowMeBug account, double money) {
		this.account = account;
		this.money = money;
	}
 
	@Override
	public void run() {
		account.deposit(money);
	}
	
}
